<?php
	$xhtml = "
	<div class='categoriesDiv'>
		<ul>";
		foreach($categories as $category)
		{
			$xhtml .= "<div class='cat'>
				<a href='".site_url()."/products/listing/".$category['categoryName']."' title=''><li><img src='".base_url()."assets/images/category/".$category['categoryImage']."' alt='kategorimapp'/></li> <h4>".$category['categoryName']."</h4> </a></div>	";
			
		}
		$xhtml .= 
		"</ul></div>";
	echo $xhtml;


	/*
	<?php
	$xhtml = "
	<div class='categoriesDiv'>
		<ul>";
		foreach($categories as $category)
		{
			$xhtml .= "<li><a href='".site_url()."/products/listing/".$category['categoryId']."'><img src='".base_url()."assets/images/category/".$category['categoryImage']."' alt='kategorimapp'/>".$category['categoryName']."</a></li>";
		}
		$xhtml .= 
		"</ul></div>";
	echo $xhtml;
	*/